<?php


namespace app\manager\controller;


use app\common\controller\Common;
use app\common\model\PayOrder;

class Order extends Common
{
    public function lists(){
        if ($this->request->isAjax()) {
            $limit = $this->getPageSize();
            $repayorder = PayOrder::paginate($limit);
            if (count($repayorder)>0){
                return $this->listJson($repayorder->items(),$repayorder->total());
            }
            return $this->errJson('暂无数据');
        }else{
            return view();
        }

    }
}